const index = m => require.ensure([],()=>m(require('@/components/index')),'index')              // 主页
const playAroundWith = m => require.ensure([],()=>m(require('@/components/playAroundWith')),'playAroundWith')   // 约陪玩
const search = m => require.ensure([],()=>m(require('@/components/search')),'search')   // 搜索
const download = m => require.ensure([],()=>m(require('@/components/download')),'download')   // 搜索
const ggList = m => require.ensure([],()=>m(require('@/components/ggChild/list')),'ggList')   // 公告列表
const ggListDetail = m => require.ensure([],()=>m(require('@/components/ggChild/listDetail')),'listDetail')   // 公告详情页
const applyForService = m => require.ensure([],()=>m(require('@/components/applyForService')),'applyForService')   // 申请入住
const topUp = m => require.ensure([],()=>m(require('@/components/topUp')),'topUp')   // 充值

export const nav = [
    {
        path: '/',
        name: 'index',
        component: index
    },
    {
        path: '/playAroundWith',
        name: 'playAroundWith',
        component: playAroundWith
    },
    {
        path: '/search',
        name: 'search',
        component: search
    },
    {
        path: '/download',
        name: 'download',
        component: download
    },
    {
        path: '/gg/list',
        name: 'ggList',
        component: ggList
    },
    {
        path: '/gg/list/detail',
        name: 'ggListDetail',
        component: ggListDetail
    },
    {
        path: '/applyForService',
        name: 'applyForService',
        // meta: { requiresAuth: true },
        component: applyForService
    },
    {
        path: '/topUp',
        name: 'topUp',
        // meta: { requiresAuth: true },
        component: topUp
    }
    
]